<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrderLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('order_logs', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name',20)->comment('操作人姓名(签单人/后台操作人)');
            $table->tinyInteger('operate_type')->comment('操作类别:1=>发起签单申请,2=>修改客户信息,3=>增加处理结果,4=>修改处理结果');
            $table->integer('order_id')->comment('签单id');
            $table->integer('operator_id')->comment('操作人id(manager_id/admin_user_id)');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('order_logs');
    }
}
